#!/bin/bash
REPO_ROOT_DIR=/invalid-dir/invalid-dir/invalid-dir
ID=repo_root_dir_tag.511d18f89e52e612aacdfdee949ed23d.txt
PROJECT_DIR=$(pwd)
ABS_TMP_DIR=$(pwd)
TMP_DIR=.

while [[ ! -f ${ABS_TMP_DIR}/${ID} ]];
do
	cd ..
	TMP_DIR=${TMP_DIR}/..
	ABS_TMP_DIR=$(pwd)

	if [[ $(pwd) == / ]];
	then
	    echo "Invalid repo directory"
		cd ${PROJECT_DIR}
		exit 1
	fi
done

REPO_ROOT_DIR=${TMP_DIR}
RELEASE_TARGET_NAME=stx
USING_CXXLIB=true

cd ${PROJECT_DIR}
source ${REPO_ROOT_DIR}/common_mk.sh